﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Collections;

public partial class ObjectDataSourceDemo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
IDataSource ds = this.ObjectDataSource1 as IDataSource;
DataSourceView dsv =  ds.GetView(string.Empty);
DataSourceSelectArguments dssa = new DataSourceSelectArguments();

dsv.Select(
    dssa,
    delegate(IEnumerable data)
    {

    }
);

    }
}